Integrand size = 39, antiderivative size = 83 \[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {g \sin (e+f x)} (c+d \sin (e+f x))} \, dx=-\frac {2 \sqrt {a} \arctan \left (\frac {\sqrt {a} \sqrt {c} \sqrt {g} \cos (e+f x)}{\sqrt {c+d} \sqrt {g \sin (e+f x)} \sqrt {a+a \sin (e+f x)}}\right )}{\sqrt {c} \sqrt {c+d} f \sqrt {g}} \]
[Out]
Time = 0.15 (sec) , antiderivative size = 83, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.051, Rules used = {3009, 211} \[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {g \sin (e+f x)} (c+d \sin (e+f x))} \, dx=-\frac {2 \sqrt {a} \arctan \left (\frac {\sqrt {a} \sqrt {c} \sqrt {g} \cos (e+f x)}{\sqrt {c+d} \sqrt {a \sin (e+f x)+a} \sqrt {g \sin (e+f x)}}\right )}{\sqrt {c} f \sqrt {g} \sqrt {c+d}} \]
[In]
[Out]
Rule 211
Rule 3009
Rubi steps \begin{align*} \text {integral}& = -\frac {(2 a) \text {Subst}\left (\int \frac {1}{a c+a d+c g x^2} \, dx,x,\frac {a \cos (e+f x)}{\sqrt {g \sin (e+f x)} \sqrt {a+a \sin (e+f x)}}\right )}{f} \\ & = -\frac {2 \sqrt {a} \arctan \left (\frac {\sqrt {a} \sqrt {c} \sqrt {g} \cos (e+f x)}{\sqrt {c+d} \sqrt {g \sin (e+f x)} \sqrt {a+a \sin (e+f x)}}\right )}{\sqrt {c} \sqrt {c+d} f \sqrt {g}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 2.71 (sec) , antiderivative size = 436, normalized size of antiderivative = 5.25 \[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {g \sin (e+f x)} (c+d \sin (e+f x))} \, dx=\frac {\left (\frac {1}{4}+\frac {i}{4}\right ) g \left (\sqrt {c+i \sqrt {-c^2+d^2}} \left (i c-i d+\sqrt {-c^2+d^2}\right ) \arctan \left (\frac {d-\left (-i c+\sqrt {-c^2+d^2}\right ) (\cos (e+f x)+i \sin (e+f x))}{\sqrt {2} \sqrt {c} \sqrt {c+i \sqrt {-c^2+d^2}} \sqrt {-1+\cos (2 (e+f x))+i \sin (2 (e+f x))}}\right )+\sqrt {c-i \sqrt {-c^2+d^2}} \left (-i c+i d+\sqrt {-c^2+d^2}\right ) \arctan \left (\frac {d+\left (i c+\sqrt {-c^2+d^2}\right ) (\cos (e+f x)+i \sin (e+f x))}{\sqrt {2} \sqrt {c} \sqrt {c-i \sqrt {-c^2+d^2}} \sqrt {-1+\cos (2 (e+f x))+i \sin (2 (e+f x))}}\right )\right ) \sqrt {a (1+\sin (e+f x))} \left (\cos \left (\frac {3}{2} (e+f x)\right )-i \sin \left (\frac {3}{2} (e+f x)\right )\right ) (-1+\cos (2 (e+f x))+i \sin (2 (e+f x)))^{3/2}}{\sqrt {2} \sqrt {c} d \sqrt {-c^2+d^2} f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) (g \sin (e+f x))^{3/2}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(504\) vs. \(2(63)=126\).
Time = 3.17 (sec) , antiderivative size = 505, normalized size of antiderivative = 6.08
method | result | size |
default | \(-\frac {2 \sqrt {\csc \left (f x +e \right )-\cot \left (f x +e \right )}\, \sqrt {a \left (1+\sin \left (f x +e \right )\right )}\, \left (\sqrt {-\left (c -d \right ) \left (c +d \right )}\, \sqrt {\left (\sqrt {-\left (c -d \right ) \left (c +d \right )}+d \right ) c}\, \operatorname {arctanh}\left (\frac {\sqrt {\csc \left (f x +e \right )-\cot \left (f x +e \right )}\, c}{\sqrt {\left (\sqrt {-\left (c -d \right ) \left (c +d \right )}-d \right ) c}}\right )+\operatorname {arctanh}\left (\frac {\sqrt {\csc \left (f x +e \right )-\cot \left (f x +e \right )}\, c}{\sqrt {\left (\sqrt {-\left (c -d \right ) \left (c +d \right )}-d \right ) c}}\right ) \sqrt {\left (\sqrt {-\left (c -d \right ) \left (c +d \right )}+d \right ) c}\, c -\operatorname {arctanh}\left (\frac {\sqrt {\csc \left (f x +e \right )-\cot \left (f x +e \right )}\, c}{\sqrt {\left (\sqrt {-\left (c -d \right ) \left (c +d \right )}-d \right ) c}}\right ) \sqrt {\left (\sqrt {-\left (c -d \right ) \left (c +d \right )}+d \right ) c}\, d -\sqrt {-\left (c -d \right ) \left (c +d \right )}\, \sqrt {\left (\sqrt {-\left (c -d \right ) \left (c +d \right )}-d \right ) c}\, \arctan \left (\frac {\sqrt {\csc \left (f x +e \right )-\cot \left (f x +e \right )}\, c}{\sqrt {\left (\sqrt {-\left (c -d \right ) \left (c +d \right )}+d \right ) c}}\right )+\arctan \left (\frac {\sqrt {\csc \left (f x +e \right )-\cot \left (f x +e \right )}\, c}{\sqrt {\left (\sqrt {-\left (c -d \right ) \left (c +d \right )}+d \right ) c}}\right ) \sqrt {\left (\sqrt {-\left (c -d \right ) \left (c +d \right )}-d \right ) c}\, c -\arctan \left (\frac {\sqrt {\csc \left (f x +e \right )-\cot \left (f x +e \right )}\, c}{\sqrt {\left (\sqrt {-\left (c -d \right ) \left (c +d \right )}+d \right ) c}}\right ) \sqrt {\left (\sqrt {-\left (c -d \right ) \left (c +d \right )}-d \right ) c}\, d \right ) \left (1+\cos \left (f x +e \right )\right )}{f \left (\cos \left (f x +e \right )+\sin \left (f x +e \right )+1\right ) \sqrt {g \sin \left (f x +e \right )}\, \sqrt {-\left (c -d \right ) \left (c +d \right )}\, \sqrt {\left (\sqrt {-\left (c -d \right ) \left (c +d \right )}-d \right ) c}\, \sqrt {\left (\sqrt {-\left (c -d \right ) \left (c +d \right )}+d \right ) c}}\) | \(505\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 168 vs. \(2 (63) = 126\).
Time = 0.89 (sec) , antiderivative size = 1303, normalized size of antiderivative = 15.70 \[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {g \sin (e+f x)} (c+d \sin (e+f x))} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {g \sin (e+f x)} (c+d \sin (e+f x))} \, dx=\int \frac {\sqrt {a \left (\sin {\left (e + f x \right )} + 1\right )}}{\sqrt {g \sin {\left (e + f x \right )}} \left (c + d \sin {\left (e + f x \right )}\right )}\, dx \]
[In]
[Out]
\[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {g \sin (e+f x)} (c+d \sin (e+f x))} \, dx=\int { \frac {\sqrt {a \sin \left (f x + e\right ) + a}}{{\left (d \sin \left (f x + e\right ) + c\right )} \sqrt {g \sin \left (f x + e\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {g \sin (e+f x)} (c+d \sin (e+f x))} \, dx=\int { \frac {\sqrt {a \sin \left (f x + e\right ) + a}}{{\left (d \sin \left (f x + e\right ) + c\right )} \sqrt {g \sin \left (f x + e\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {g \sin (e+f x)} (c+d \sin (e+f x))} \, dx=\int \frac {\sqrt {a+a\,\sin \left (e+f\,x\right )}}{\sqrt {g\,\sin \left (e+f\,x\right )}\,\left (c+d\,\sin \left (e+f\,x\right )\right )} \,d x \]
[In]
[Out]